#include <iostream>
#include <vector>
using namespace std;

int factorial(int n)
{
    if (n <= 1)
    {
        return 1;
    }
    
    return n  * factorial(n - 1);

}
int main()
{
    int arr[] = { 1,3,4,6,7,2,9,8,5,0 };
    for (int i = 0; i < 10; ++i)
    {
        for (int j = 0; j < ; ++j)
        {
            if (arr[j] > arr[j + 1])
            {
                int tmp = arr[j];
                arr[j] = arr[j + 1];
                arr[j + 1] = tmp;
            }
        }
      
    }

    for (int i = 0; i < sizeof(arr) / sizeof(arr[0]); ++i)
    {
        cout << arr[i] << " ";
    }

    return 0;
}